package com.water_work_form.mapper;

import com.water_work_form.entity.BasicDrug;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.water_work_form.entity.BasicRestriction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 基础表——药剂质控 Mapper 接口
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Mapper
public interface BasicDrugMapper extends BaseMapper<BasicDrug> {

    @Select("SELECT * FROM basic_drug WHERE drug_name = #{drugName}")
    BasicDrug getOneByName(String drugName);

    @Select("SELECT * FROM basic_drug WHERE name = #{name}")
    List<BasicDrug> listByName(String name);

}
